package com.niuwa.p2p.dao.fund;

import java.util.List;

import com.niuwa.p2p.dao.MyBatisDao;
import com.niuwa.p2p.entity.fund.PayPartnerDetail;
@MyBatisDao
public interface PayPartnerDetailDao {
    int deleteByPrimaryKey(Long id);

    int insert(PayPartnerDetail record);

    /**
     * 添加变更记录
     * @param record 变更记录信息
     * @return
     */
    int insertPayPartnerDetail(PayPartnerDetail record);

    PayPartnerDetail selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(PayPartnerDetail record);

    int updateByPrimaryKey(PayPartnerDetail record);
    
    /**
     * 根据机构编号获取变更记录
     * @param partnerNo 机构编号
     * @return
     */
    List<PayPartnerDetail> selectDetailByPartnerNo(String partnerNo);
}